package coreAuction;
import java.util.ArrayList;

public class CustomerList {
	private ArrayList<Customer> customers;

	public CustomerList() {
		this.customers = new ArrayList<Customer> ();
	}
	
	public void add(Customer l) {
		customers.add(l);
	}
	
	public Customer find(String id) {
		for (Customer c : customers) {
			if (c.getCustID().equals(id)){
				return c;
			}
		}
		return null;
	}
	
	public String getCustList() {
		String report = "All Customers\n";
		for (Customer c : customers){
			report += c.getReport();
		}
		return report;
	}
	

}
	
	

